package com.woniuxy.seata.order.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 作者
 * @create 2025-07-03 17:04
 */
@FeignClient(name = "seata-account")
public interface AccountFeignClient {
    @RequestMapping("/account/deduct")
    public String deduct(@RequestParam("userId") String userId,
                         @RequestParam("money") int money);
}
